import { IsNotEmpty, IsOptional, IsString, MaxLength } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreateTaskCategoryDto {
  @ApiProperty({
    description: 'The name of the task category',
    maxLength: 64,
    example: 'Promotional Tasks',
  })
  @IsNotEmpty()
  @IsString()
  @MaxLength(64)
  name: string;

  @ApiProperty({
    description: 'The description of the task category',
    required: false,
    example: 'Tasks related to promotional activities',
  })
  @IsOptional()
  @IsString()
  description?: string;
}
